﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.CodingRuleVMs
{
    public partial class CodingRuleBatchVM : BaseBatchVM<CodingRule, CodingRule_BatchEdit>
    {
        public CodingRuleBatchVM()
        {
            ListVM = new CodingRuleListVM();
            LinkedVM = new CodingRule_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class CodingRule_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._CodingRule._CodingList")]
        public string CodingListId { get; set; }
        [Display(Name = "_Model._CodingRule._Seq")]
        public int? Seq { get; set; }
        [Display(Name = "_Model._CodingRule._CodeRule")]
        public CodeRuleEnum? CodeRule { get; set; }
        [Display(Name = "_Model._CodingRule._FixedValue")]
        public string FixedValue { get; set; }
        [Display(Name = "_Model._CodingRule._FixedRule")]
        public FixedEnum? FixedRule { get; set; }
        [Display(Name = "_Model._CodingRule._GlideLen")]
        public int? GlideLen { get; set; }
        [Display(Name = "_Model._CodingRule._StartNumber")]
        public int? StartNumber { get; set; }
        [Display(Name = "_Model._CodingRule._GlideStep")]
        public int? GlideStep { get; set; }
        [Display(Name = "_Model._CodingRule._Glide")]
        public string Glide { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}